using CppAst;

namespace ast;

public class ParametersInfo
{
    public List<ParameterInfo> Paras = new();
    public string TargetName;

    public ParametersInfo(string[] input, string target)
    {
        TargetName = target;
        for (var i = 0; i < input.Length; i = i + 2)
        {
            var typeName = input[i];
            var argName = input[i + 1];

            var p = new ParameterInfo
            {
                CppTypeFullName = typeName,
                Name = argName
            };
            Paras.Add(p);
        }
    }
}